package com.yinuo.common;

/**
 * Created by Administrator on 2018/7/16.
 */
public class JsonResult {
    public static String toSuccess(){
        return "{\"success\":\"ok\"}";
    }

    public static String toSuccess(String msg){
        return "{\"success\":\"ok\",\"msg\":\""+msg+"\"}";
    }

    public static String toFaild(){
        return "{\"success\":\"no\"}";
    }

    public static String toFaild(String msg){
        return "{\"success\":\"no\",\"msg\":\""+msg+"\"}";
    }
}
